package com.kgc.work.workmanagerweb.controller;

import com.kgc.work.bean.Project;
import com.kgc.work.service.ProService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ProController {

    @Reference
    ProService proService;
    @RequestMapping("/selePro")
    public List<Project> selePro(){
        List<Project> all = proService.getAll();
        return all;
    }
}
